<include file="User@Public:header"/>
<div class="am-g">
    <div class="am-u-md-2">
        <include file="User@Public:left_menu"/>
    </div>
    <div class="am-u-md-10 am-cf">
        <div class="am-panel am-panel-default am-cf">
            <div class="am-panel-hd">
                <h3 class="am-panel-title">第三方账号管理</h3>
            </div>
            <div class="am-panel-bd">
                <link type="text/css" rel="stylesheet" href="/Addons/SyncLogin/Static/css/binding.css">
                <div class="am-container">
                    
                        <div class="box">
                        <volist name="config['type']" id="sync">
                            <div class='sync'>
                              <div class="sync-left {$sync|strtolower}"></div>
                              <div class="sync-center am-fr">
                                  <h2>{$sync|strtoupper}</h2>
                                  <php>
                                  $description = $config[$sync.'description'];
                                  </php>
                                  {$description}
                              </div>
                              <div class="sync-right">
                              <if condition="$info[strtolower($sync)] neq strtolower($sync) ">
                              <a href="{:U('home/addons/execute',array('_addons'=>'SyncLogin','_controller'=>'Member','_action'=>'dobind','uid'=>$uid,type=>$sync))}" class="am-btn am-btn-primary">立即绑定</a>
                              <else/>
                              <a href="{:U('home/addons/execute',array('_addons'=>'SyncLogin','_controller'=>'Member','_action'=>'cancelbind','uid'=>$uid,'type'=>$sync))}"  class="am-btn am-btn-success">取消绑定</a>
                              </if>
                              </div>
                            </div>
                        </volist>
                        </div>
                </div>
            </div>
        </div>
    </div>
</div>
